package cn.wangfeixiong;


public class StrStudy {


    public static void main(String[] args) {

        var age = 30;
        String json = """
                {
                    "name": "John",
                    "age": %s,
                    "city": "New York"
                }
                """.formatted(age);
        System.out.println(json);
    }
}
